package org.speed.userservice.controller;

import org.speed.userservice.model.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
	
	private int count = 0 ;

	@RequestMapping(value = "/count")
    public Integer count(){
        System.out.println("count");
        
        count++;
        
        return count;
    }
	
	@RequestMapping(value = "/userList")
    public String userList(){
        System.out.println("provice:userList");
        
        return "userList";
    }
	
	@RequestMapping(value = "/users/list")
    public String list(){
		
		String id = "11111111111111111111";
		String name = "杨右边";
		String  extinfo = "个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍个人介绍";
		User user = new User(id, name, 12, false,extinfo);
		
		
        //System.out.println("provice:list");
        return "list";
    }
	
}
